package net.csdn.business.discuss.api.config;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.csdn.business.discuss.api.model.vo.CategoryTypeVO;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * @ClassName DiscussConfigData
 * @Description Discuss相关配置项
 * @Author zhangyl
 * @Date 2023/7/15 11:10
 */
@Getter
@Setter
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "discuss")
public class DiscussConfigData {
    private List<CategoryTypeVO> categoryType = new ArrayList<>();

    /**
     * 向云校仓库同步数据的event：push,pull_requests
     */
    private Set<String> project;
}
